Relations are shared steps

Pick two numbers. Their routes from 1 share a trunk (the gcd), then branch. Swap the branches (dashed) to complete the parallelogram and you land on the lcm. That is why a·b = gcd · lcm.

p = 2
p = 3
p = 5
p = 7
p = 11
p = 13
p ≥ 17
thick = shared trunk
{{v.t}} {{h.t}} n, spaced by log₂ n: around the hole (φ) depth Ω(n): through the tube (θ) {{t.t}}
{{row.name}} {{row.val}} {{f.text}}{{f.sep}}
{{kind}}
{{prodLine}}
{{logLine}}
Both routes on the torus
{{t.t}}
{{torusCaption}}